package com.example.mapper;

import com.example.entity.EmployeeDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 员工详情Mapper接口
 */
public interface EmployeeDetailMapper {
    /**
     * 新增
     */
    int insert(EmployeeDetail employeeDetail);

    /**
     * 删除
     */
    int deleteById(Integer id);
    
    /**
     * 根据员工ID删除
     */
    int deleteByEmployeeId(Integer employeeId);

    /**
     * 修改
     */
    int updateById(EmployeeDetail employeeDetail);

    /**
     * 根据ID查询
     */
    EmployeeDetail selectById(Integer id);
    
    /**
     * 根据员工ID查询
     */
    EmployeeDetail selectByEmployeeId(Integer employeeId);

    /**
     * 查询全部
     */
    List<EmployeeDetail> selectAll(EmployeeDetail employeeDetail);
}